package com.aiyige.share.model;

public class ShareContactItem {
    public static final int TYPE_NORMAL = 1;
    public static final int TYPE_MORE = 2;
    String id;
    String name;
    String avatar;
    String accid;
    int type;

    public ShareContactItem() {
    }

    private ShareContactItem(Builder builder) {
        setId(builder.id);
        setName(builder.name);
        setAvatar(builder.avatar);
        setAccid(builder.accid);
        setType(builder.type);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getAccid() {
        return accid;
    }

    public void setAccid(String accid) {
        this.accid = accid;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public static final class Builder {
        private String id;
        private String name;
        private String avatar;
        private String accid;
        private int type;

        private Builder() {
        }

        public Builder id(String val) {
            id = val;
            return this;
        }

        public Builder name(String val) {
            name = val;
            return this;
        }

        public Builder avatar(String val) {
            avatar = val;
            return this;
        }

        public Builder accid(String val) {
            accid = val;
            return this;
        }

        public Builder type(int val) {
            type = val;
            return this;
        }

        public ShareContactItem build() {
            return new ShareContactItem(this);
        }
    }
}
